#ifndef M_SOCKET_H
#define M_SOCKET_H "m_socket"
// socket 每次读取数据大小 255
#define SOCKE_REC_BUF_MAX       0xFF
// socket通讯中每条指令最大值
#define SOCKE_CMD_BUF_MAX       SOCKE_REC_BUF_MAX

struct ReceiveDataListener {
    int (*onReceive)(const char *data, unsigned int size);
};

int m_connect(unsigned int port, const char *addr);

int m_startReceiveData(struct ReceiveDataListener *listener);

#endif